﻿using Newtonsoft.Json;
using System.Collections.Generic;
using XUCore.WeChat.Apis;

namespace XUCore.WeChat.Enterprise.Apis.Group.Chat
{
    public class ChatApiResult : ApiResultBase
    {
        /// <summary>
        /// 客户群列表
        /// </summary>
        [JsonProperty("group_chat_list")]
        public List<GroupChatResult> group_chat_list { get; set; }
        /// <summary>
        /// 分页游标，下次请求时填写以获取之后分页的记录。如果该字段返回空则表示已没有更多数据
        /// </summary>
        [JsonProperty("next_cursor")]
        public string next_cursor { get; set; }
    }

    public class GroupChatResult
    {
        /// <summary>
        /// 客户群ID
        /// </summary>
        [JsonProperty("chat_id")]
        public string chat_id { get; set; }
        /// <summary>
        /// 客户群跟进状态。<para/>
        /// 0 - 跟进人正常<para/>
        /// 1 - 跟进人离职<para/>
        /// 2 - 离职继承中<para/>
        /// 3 - 离职继承完成<para/>
        /// </summary>
        [JsonProperty("status")]
        public int status { get; set; }
    }
}
